#ifndef __OTA_HTTP_H
#define __OTA_HTTP_H
#include "app_common.h"
#include "curl/curl.h"



/// @brief 获取文本
/// @param url 访问地址
/// @return char* 获取的文本数据
char *ota_http_get_text(char *url);


/// @brief http下载
/// @param url 
/// @param file_path 
/// @return 
Com_state_t ota_http_download(char* url,char *file_path);

#endif 